<extend name="Public/base" />
<block name="style">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/chosen_v1.8.5/chosen.min.css">
    <style type="text/css">
        .layui-layer-content {
            overflow: visible !important;
        }
        #label-table td {
            padding: 8px;
        }
    </style>
</block>
<block name="body">


    <!-- 标题栏 -->
    <div class="main-title">
        <h2 style="cursor: pointer" onClick="javascript :history.back(-1);">评论列表 [返回]</h2>
        <div style="margin-left: 900px;" class="fl">
            <a  class="btn bg-blue" href="{:U('Record/addComment', ['record_id' => $record_id])}">新 增</a>
        </div>
    </div>

    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table class="">
            <thead>
            <tr>
                <th class="">id</th>
                <th class="">姓名</th>
                <th class="">医院</th>
                <th class="">评论内容</th>
                <th class="">评论时间</th>
                <th class="">创建时间</th>
                <th class="">操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.name}</td>
                        <td>{$vo.hospital}</td>
                        <td>{$vo.comment}</td>
                        <td>{$vo.comment_date}</td>
                        <td>{$vo.create_at}</td>
                        <!--<td>{$vo['projguid']}</td>-->
                        <td>
                            <a class="op blue" href="{:U('Record/editComment&id='.$vo['id'].'&record_id='.$record_id)}" >编辑</a>
                            <a href="{:U('Record/deltetComment&id='.$vo['id'].'&record_id='.$record_id)}" class="confirm ajax-get op light-blue">删除</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>

</block>
<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    <script src="__STATIC__/layer/layer.js"></script>
    <script type="text/javascript">


        //导航高亮
        highlight_subnav('{:U('Record/index')}');
    </script>
</block>

